package com.yunao.service.report.bean.compare;



import com.yunao.commons.serachcore.core.bean.Group;

import java.util.Comparator;

/**
 * 检索结果比较
 * 
 * @author guild
 * 
 */
public class ComparatorByValue<T extends Group> implements Comparator<T> {

	public int compare(T bean1, T bean2) {
		if(bean1.getValue() == bean2.getValue())
			return -1;
		return (bean1.getValue() > bean2.getValue()) ? -1 : 1;
	}

}
